import datetime
import time

def cost_func():
    for i in range(20):
        print(datetime.datetime.now())
        # 选择订单逻辑
        time.sleep(1)

        time.sleep(1)

cost_func()